<include file="__THEME__/header" />
<link href="../Public/css/pop_up.css" rel="stylesheet" type="text/css" />
<form action="" method="post">
	<textarea name="test" cols="" rows="5" class="text" style="width:90%;"></textarea>
	<input type="submit" value="提交">
</form>


<div class="pop_up">
  <div class="pop_up_main">
    <div class="pop_up_tab">
      <div class="tab"><a href="#" class="on">基本设置</a> <a href="#">模板设置</a> </div>
    </div>
    <div class="pop_up_box">
      <ul class="pop_up_box_form">
        <li>
          <div class="c1">数据源：</div>
          <div class="c2">
            <label>
              <input name="1" type="radio" value="" checked="checked" />
              按分类</label>
            &nbsp;
            <label>
              <input name="1" type="radio" value="" />
              按群组</label>
            &nbsp;
            <label>
              <input name="1" type="radio" value="" />
              按用户</label>
            <div>
              <select name="select" size="5" multiple="multiple" id="select" style="width:90%;" class="text">
                <option>分类1</option>
                <option>分类2</option>
                <option>分类3</option>
              </select>
            </div>
            <div style="display:none;">
              <select name="select" size="5" multiple="multiple" id="select" style="width:90%;" class="text">
                <option>群组1</option>
                <option>群组2</option>
                <option>群组3</option>
              </select>
            </div>
            <div  style="display:none;">
              <textarea cols="" rows="5" class="text" style="width:90%;">w00135495,lKF23535,lKF23538（群组ID或用户ID或用户域账号）</textarea>
              <br />
              输入用户ID或用户域账号，多条数据用“，”分隔） </div>
          </div>
        </li>
        <li>
          <div class="c1">排序：</div>
          <div class="c2">
            <select name="u" id="order" class="text">
              <option value="cTime" selected="selected">按发表时间</option>
              <option value="digCount">按Dig数</option>
              <option value="commentCount">按评论数</option>
              <option value="readCount">按浏览数</option>
            </select>
            <select name="u" id="order_t" class="text">
              <option value="DESC" selected="selected">倒序（新到旧，大到小）</option>
              <option value="ASC">正序（旧到新，小到大）</option>
            </select>
          </div>
        </li>
        <li>
          <div class="c1">结果数：</div>
          <div class="c2">
            <input id="limit" value="10" class="text"/>
          </div>
        </li>
        <li>
          <div class="c1">标题：</div>
          <div class="c2">
            <input id="title" value="最新博文" class="text"/>
            <label>
              <input type="checkbox" name="checkbox" id="checkbox" />
            </label>
            无 </div>
        </li>
        <li>
          <div class="c1">模板：</div>
          <div class="c2">
            <select name="u" id="style" class="text">
              <option value="default" selected="selected">默认带框，带标题</option>
              <option value="noTitle">无标题</option>
            </select>
            <a href="#">编辑模板</a></div>
        </li>
      </ul>
    </div>
    <div class="pop_up_btn">
      <input type="button" value="确认保存" />
      <button onclick="preview();" >预 览</button>
    </div>
  </div>
  <div id="preview" class="preview_r"></div>
</div>

<div style="clear:both;"></div>
<div class="pop_up">
  <div class="pop_up_main">
    <div class="pop_up_tab">
      <div class="tab"><a href="#">基本设置</a> <a href="#" class="on">模板设置</a> </div>
    </div>
    <div class="pop_up_box">
      <ul class="pop_up_box_form">
      <li>
        <div class="c1">选择模板：</div>
        <div class="c2">
          <select name="u2" id="u" class="text">
            <option value="默认带框，带标题" selected="selected">默认带框，带标题</option>
            <option value="无标题">无标题</option>
          </select>
        </div>
      </li>
      <li>
        <div class="c1">&nbsp;</div>
        <div class="c2"> <a href="#">标题：{$blog}</a>&nbsp;<a href="#">内容：{$blog.content}</a>&nbsp;<a href="#">作者：{$blog.author}</a></div>
      </li>
      <li>
      <div class="c1">&nbsp;</div>
      <div class="c2">
        <textarea cols="" rows="8" class="text" style="width:90%;"><widget id="1231" title="博客">
{$content}
</textarea>
      </div>
      </li>
      <li>
        <div class="c1">&nbsp;</div>
        <div class="c2">
        <input name="input" type="button" value="恢复原有" />
        <input name="input2" type="button" value="默认系统" />
（可选择模板，再进行修改
        ）</div>
      </li>
      </ul>
    </div>
    <div class="pop_up_btn">
      <input type="button" value="确认保存" />
      <input name="按钮" type="button" value="预 览" />
    </div>
  </div>
  <div class="preview_r"><img src="../Public/images/preview_blog.gif" /></div>
</div>

<div style="clear:both;"></div>

<div class="pop_up">
  <div class="pop_up_main">
    <div class="pop_up_box">
      <ul class="pop_up_box_form">
      <li>
      <div class="c1">&nbsp;</div>
      <div class="c2">
        <textarea id="content" cols="" rows="8" class="text" style="width:90%;">
{$content}
</textarea>
      </div>
      </li>
      <li>
        <div class="c1">&nbsp;</div>
        <div class="c2">
        <input name="input" type="button" value="恢复原有" />
        <input name="input2" type="button" value="默认系统" />
（可选择模板，再进行修改
        ）</div>
      </li>
      </ul>
    </div>
    <div class="pop_up_btn">
      <input type="button" value="确认保存" />
      <button name="按钮" type="button" onclick="preview_t();"  >预览</button>
    </div>
  </div>
  <div id="result2" class="preview_r"></div>
</div>
<include file="__THEME__/footer" />



<script>
	function preview(){
		var uid = 10,order=$('#order').val()+" "+$('#order_t').val(),limit = $('#limit').val(),title = $('#title').val(),style=$('#style').val();
		var tagId = 24;
		$.post(APP+'&mod=Test&act=preview',{tagId:tagId,uid:uid,order:order,limit:limit,title:title,style:style},function(result){
			$('#preview').html(result);
		});
	}	
	
	function preview_t(){
		var content = $('#content').val();
		$.post(APP+'&mod=Test&act=previewScore',{content:content},function(result){
			$('#result2').html(result);
		});
	}
</script>

